package service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import po.Merchant;
import po.OrderItems;
import po.Orders;
import vo.OrdersVo;

public interface OrdersService {
	public List<Orders> findOrdersByCid(String cid);
	public String updateOrdersStatus(Orders orders);
	public String updateOrdersRecieve(Orders orders);
	public String updateOrdersGrade(Orders orders);
	public Orders findOrder(String oid);
	public OrdersVo findOrderVo(String oid);
	public String addOrder(Orders orders);
	public Map<Date, Integer> findOrdersTimeGrade(String mid);
	public List<OrderItems> findOrderItemsByOid(String oid);
	public List<Orders> findWaitingForReceiveOrdersByCid(String cid);
	public List<OrdersVo> findWaitingForReceiveOrdersVoByCid(String cid);
	public List<OrdersVo> findHistoricalOrdersVoByCid(String cid);
	public List<String> findWaitingForPickOrdersOidsByCid(String cid);
	public Merchant calculateNewMerchantGrade(Orders orders); 
}
